import request from '@/utils/request'

export function propertyPage(params) {
    return request({
        url: '/houseList',
        method: 'get',
        params
    })
}

    export function ownerPage(params) {
        return request({
            url: '/ownerList',
            method: 'get',
            params
        })
}
export function addOwner(params) {
    return request({
        url: '/addOwner',
        method: 'get',
        params
    })
}
export function delOwner(id) {
    return request({
        url: '/delOwner',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data:id
    })
}
export function selectById() {
        return request({
            url: '/selectHouseId',
            method: 'get',
        })
    }
    export function updateOwnerList(data) {
        return request({
            url: '/updateOwnerList',
            method: 'post',
            data
        })
    }
    export function updateProperty(data) {
        return request({
            url: '/updateProperty',
            method: 'post',
            data
        })
    }
    export function deleteProperty(id) {
        return request({
            url: '/delProperty',
            method: 'get',
            params: {
                id: id
            }
        });
    }
